home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Games / Solitaire / Sources / Pyramid / StockCardPileDelegate.h < prev    next >
Text File  |  1994-04-10  |  1KB  |  41 lines

  1. /* indent:4  tabsize:8  font:fixed-width */
  2.  
  3. /*--------------------------------------------------------------------------
  4. |---------------------------------------------------------------------------
  5. |
  6. |    StockCardPileDelegate : Object
  7. |
  8. |    An instance of this class acts as a delegate for messages from the 
  9. |    Stock Pile in the Pyramid solitaire game.
  10. | --------------------------------------------------------------------------
  11. \--------------------------------------------------------------------------*/
  12.  
  13. #import <appkit/appkit.h>
  14.  
  15. @interface StockCardPileDelegate:Object
  16. {
  17.     id discardCardPileViewL;    /* left pile containing cards that add to 13 */
  18.     id discardCardPileViewR;    /* right pile containing cards adding to 13 */
  19.     id wasteCardPileView;    /* the wastepile */
  20.     id alertPanel;
  21. }
  22.  
  23. /*----------------------------------------------------------------------------
  24. |
  25. |    Delegate-setting methods
  26. |
  27. \---------------------------------------------------------------------------*/
  28.  
  29. - setDiscardLeft:left discardRight:right waste:waste;
  30.  
  31. /*----------------------------------------------------------------------------
  32. |
  33. |    CardPileView delegation methods
  34. |
  35. \---------------------------------------------------------------------------*/
  36.  
  37. - clickedCard:aCard in:stockCardPileView;
  38. - (BOOL)canAcceptPile:aCardPile from:sender in:stockCardPileView;
  39.  
  40. @end
  41.